MultiSafepay\WooCommerce\Settings\SettingsController A

Total Complexity 64
Dependencies 6
Dependents 1
Total lines 423
Lines of code 228
Logical lines of code 106
Comment lines 166
Methods 25
Properties 0

Methods 25

Method Rating Maintainability Complexity Lines of code
multisafepay_ajax_toggle_gateway_enabled()
A
53 9 22
before_ajax_toggle_gateway_enabled()
A
55 9 18
download_multisafepay_logs()
S
58 5 15
get_tab_active()
S
64 5 9
has_api_key()
S
61 4 13
is_gateway_enabled()
S
60 3 13
register_common_settings()
S
62 3 11
needs_update()
S
62 3 11
filter_multisafepay_settings_as_booleans()
S
71 3 6
filter_multisafepay_common_settings_fields()
S
63 3 10
generate_label_for_settings_field()
S
69 2 6
display_intro_section()
S
67 2 7
enqueue_scripts()
S
60 1 13
add_settings_field()
S
63 1 12
register_setting()
S
63 1 11
register_common_settings_page()
S
63 1 11
display_multisafepay_logs_section()
S
77 1 4
display_multisafepay_status_section()
S
77 1 4
display_multisafepay_support_section()
S
80 1 3
filter_multisafepay_settings_as_int()
S
81 1 3
set_wc_screen_options_in_common_settings_page()
S
77 1 4
add_settings_section()
S
68 1 8
display_field()
S
73 1 5
display_multisafepay_settings()
S
70 1 6
enqueue_styles()
S
78 1 3